package com.puppet.listener.topic;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class TopicListener {
    @RabbitListener(queues = "topicQueue1")
    public void topicQueue1(String message) {
        System.out.println("topicQueue1: " + message);
    }

    @RabbitListener(queues = "topicQueue2")
    public void topicQueue2(String message) {
        System.out.println("topicQueue2: " + message);
    }
}
